<?php
//STILL UNDER CONSTRUCTION

session_start();
/**
 * Description of articles
 *
 * @author bilde
 */
class articles extends CI_Controller
{
    function  __construct()
    {
        parent::__construct();

        //Logged_in control
        if (!$this->session->userdata('is_logged_in'))
        {
            redirect('/welcome/index','refresh');
        }
    }

    //Load the article-view
    function index()
    {
        $data['title'] = 'Articles';
        $data['main_content'] = 'articles/articles_home';
        $this->load->vars($data);
        $this->load->view('includes/template');
    }


}
?>
